
.profile-header {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-details h1 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.user-badge {
    font-size: 0.8rem;
    background-color: #f39c12;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: normal;
    margin-left: 10px;
}

.user-meta {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stats-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.stats-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin: 0;
    line-height: 1;
}

.stat-label {
    margin-top: 10px;
    color: #6c757d;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
}

.activity-item:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.activity-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.activity-time {
    color: #6c757d;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 10px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.location-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.location-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.location-info {
    flex-grow: 1;
}

.location-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.location-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    gap: 1rem;
}

.preference-label {
    flex-grow: 1;
    white-space: nowrap;
    min-width: 100px;
}

.preference-value {
    font-weight: bold;
    color: #3498db;
    white-space: nowrap; /* 新增 */
}

.preference-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}


/* 新增对齐样式 */
.settings-section {
    max-width: 600px;
    margin: 20px 0;
}

.setting-item {
    padding: 12px 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 100%;
}

.setting-item i {
    width: 24px;
    text-align: center;
}

.form-switch {
    margin-left: auto;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3498db;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}


@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid, .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* 活动列表样式 */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 针对不同类型活动的图标颜色 */
.activity-icon-view {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.activity-icon-search {
    background-color: #fff3cd;
    color: #ffc107;
}

.activity-icon-favorite {
    background-color: #f8d7da;
    color: #dc3545;
}

.activity-icon-feedback {
    background-color: #e8f5e9;
    color: #388e3c;
}

.activity-content {
    flex-grow: 1;
    min-width: 0; /* 防止内容溢出 */
}

.activity-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-content p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-link {
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
    color: #0d6efd;
    text-decoration: none;
}

.activity-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

.activity-actions {
    opacity: 0;
    transition: opacity 0.2s;
    margin-top: 5px;
}

.activity-item:hover .activity-actions {
    opacity: 1;
}

/* 夜间模式样式调整 */
body.dark-mode .activity-item,
[data-theme="dark"] .activity-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .activity-item:hover,
[data-theme="dark"] .activity-item:hover {
    background-color: rgba(255,255,255,0.05);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3498db;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid, .locations-grid {
        grid-template-columns: 1fr;
    }
}



